<?php

/* @var $this yii\web\View */
/* @var $name string */
/* @var $message string */
/* @var $exception Exception */

use yii\helpers\Html;

$this->title = ($code ? : '') .($name ? : '错误提示');
?>
<div class="site-error">
    <a href="<?=\yii\helpers\Url::previous() ?>" class="btn btn-social btn-default"><i class="fa fa-arrow-left"></i> 后退</a>
    <div class="clearfix" style="height: 5px;"></div>
    <div class="alert alert-danger">
        <?= nl2br(Html::encode($message)) ?>
    </div>
    <p>
        <?= strtolower(YII_ENV) == 'dev' ? nl2br(Html::encode($exception)) : '' ?>
    </p>

</div>
